package com.roadjava.demo05;

import com.roadjava.demo05.bean.Grade;
import com.roadjava.demo05.bean.UserInfo5;
import com.roadjava.demo05.util.ValidationUtil5;

import java.util.List;

public class ValidationTest5 {
    public static void main(String[] args) {
        UserInfo5 userInfo1 = new UserInfo5();
//        userInfo1.setGrade(new Grade());

        List<String> list1 = ValidationUtil5.valid(userInfo1);
        System.out.println(list1);

        UserInfo5 userInfo2 = new UserInfo5();
        userInfo2.setGrade(new Grade());

        List<String> list2 = ValidationUtil5.valid(userInfo2);
        System.out.println(list2);

        UserInfo5 userInfo3 = new UserInfo5();
        Grade grade = new Grade();
        grade.setNo("1");
        userInfo3.setGrade(grade);

        List<String> list3 = ValidationUtil5.valid(userInfo3);
        System.out.println(list3);
    }

}